home *** CD-ROM | disk | FTP | other *** search
/ Windows CE - The Ultimate Companion / ROMMAN_CE.iso / Files / Games / Pocket CW / PocketCW.load < prev    next >
Text File  |  1997-10-18  |  1KB  |  31 lines

  1. // copy the executable file
  2.  
  3. // mkdir is taken care of by Load...
  4. copy . . "PocketCW.exe"
  5. mkdir puzzles
  6. copy . puzzles "golem.puz"
  7.  
  8. // register the icon
  9. regKeyCreate HKEY_CLASSES_ROOT .puz 1
  10. regKeyCreate HKEY_CLASSES_ROOT cwpuzzle 1
  11. regKeyCreate HKEY_CLASSES_ROOT cwpuzzle\DefaultIcon 1
  12. regKeyCreate HKEY_CLASSES_ROOT cwpuzzle\Shell 1
  13. regKeyCreate HKEY_CLASSES_ROOT cwpuzzle\Shell\Open 1
  14. regKeyCreate HKEY_CLASSES_ROOT cwpuzzle\Shell\Open\Command 1
  15.  
  16. regString HKEY_CLASSES_ROOT .puz 1 Default "cwpuzzle"
  17. regString HKEY_CLASSES_ROOT cwpuzzle 1 Default "PocketCW Puzzle"
  18. regString HKEY_CLASSES_ROOT cwpuzzle\DefaultIcon 1 Default "%P\PocketCW.exe,-101"
  19. regString HKEY_CLASSES_ROOT cwpuzzle\Shell\Open\Command 1 Default "\"%P\PocketCW.exe\" %1"
  20. regString ~ ~ 1 VersionNumber "1.5"
  21. regString ~ ~ 1 PuzzleDir    "%P\puzzles"
  22.  
  23. // create some shortcuts on the HPC device
  24.  
  25. createShortcut \Windows\Desktop "Pocket CW.lnk" . "PocketCW.exe"
  26. createShortcut \Windows\Programs "Pocket CW.lnk" . "PocketCW.exe"
  27.  
  28. // Exit the script
  29.  
  30. exit
  31.